/**
 * Copyright (c) 2017, Alex. All rights reserved.
 */
package com.oschina.bottle.redis;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 扩展redis参数
 *
 * @author <a href="mailto:zhongchao@gegejia.com">zhong</a>
 * @version 1.0 2017/9/28
 * @since 1.0
 */
@ConfigurationProperties(prefix = "spring.redis")
public class RedisExtendProperties
{
    /**
     * 缓存key前缀
     */
    private String prefix;

    /**
     * 全局默认过期时间
     */
    private long expire = 5 * 60;

    public String getPrefix()
    {
        return prefix;
    }

    public void setPrefix(String prefix)
    {
        this.prefix = prefix;
    }

    public long getExpire()
    {
        return expire;
    }

    public void setExpire(long expire)
    {
        this.expire = expire;
    }
}
